package com.zhangln.mountbuzhou.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 当前在线设备
 * </p>
 *
 * @author sherry
 * @since 2020-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_online")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TbOnlineEntity implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    private String area;

    private String orgCode;

    private String device;

    private String userId;

    private String channelId;
    private String serverInst;

    /**
     * 乐观锁
     */
    private Integer revision;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;


    public static final String ID = "id";

    public static final String AREA = "area";

    public static final String ORG_CODE = "org_code";

    public static final String DEVICE = "device";

    public static final String USER_ID = "user_id";

    public static final String CHANNEL_ID = "channel_id";
    public static final String SERVER_INST = "server_inst";

    public static final String REVISION = "revision";

    public static final String CREATED_BY = "created_by";

    public static final String CREATED_TIME = "created_time";

    public static final String UPDATED_BY = "updated_by";

    public static final String UPDATED_TIME = "updated_time";

}
